package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.ResouceFileService;
import com.it.park.dao.ResourceFileMapper;
import com.it.park.model.ResourceFile;

@Service("resourceFileService")
public class ResourceFileServiceImpl extends BaseServiceImpl<ResourceFile> implements ResouceFileService {
	
	@Autowired
	private  ResourceFileMapper  fileMapper;

	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return fileMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(ResourceFile record) {
		return fileMapper.insertSelective(record)==1;
	}
	@Override
	public ResourceFile selectByPrimaryKey(Integer id) {
		return fileMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(ResourceFile record) {
		return fileMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(ResourceFile record) {
		return fileMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public boolean insert(ResourceFile record) {
		return fileMapper.insert(record)==1;
	}
	@Override
	public List<ResourceFile> selectByUserId(Integer userId) {
		return fileMapper.selectByUserId(userId);
	}
	@Override
	public List<ResourceFile> selectByTitle(Map<String, Object> map) {
		return fileMapper.selectByTitle(map);
	}
	@Override
	public List<ResourceFile> selectAll() {
		return fileMapper.selectAll();
	}
	@Override
	public List<ResourceFile> selectPagination(Map<String, Object> map) {
		return fileMapper.selectPagination(map);
	}
	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return fileMapper.selectTotal(map);
	}
	
	@Override
	public List<ResourceFile> selectRankingList() {
		return fileMapper.selectRankingList();
	}
	@Override
	public List<ResourceFile> selectHostCommentList() {
		return fileMapper.selectHostCommentList();
	}
	@Override
	public boolean updateByPrimaryKeyWithBLOBs(ResourceFile record) {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public List<ResourceFile> selectPagination(ResourceFile t) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer selectTotal(ResourceFile t) {
		// TODO Auto-generated method stub
		return null;
	}
	

}
